package com.demo;
import com.methods.Fruits;
import com.methods.Waxberry;
import com.methods.Banana;
/**
 * 测试类
 * 2017/8/16
 * @author Erik
 * @version 0.1
 * @since JDK1.8
 * @see com.methods.Fruits
 * @see com.methods.Banana
 * @see com.methods.Waxberry
 */
public class Test {
    public static void main(String[] args){
        Fruits fru1=new Fruits("圆形","好吃");
        Fruits fru2=new Fruits("圆形","好吃");
        Fruits fru=new Fruits();
        fru.eat();
        System.out.println("fru1和fru2的引用比较:"+fru1.equals(fru2));
        System.out.println("————————————————————————————————————————");

        Waxberry waxBerry=new Waxberry("圆形","酸甜适中，非常好吃","紫红色");
        waxBerry.eat();
        waxBerry.face();
        System.out.println("————————————————————————————————————————");

        Banana banana=new Banana("短而稍圆","果肉香甜，可供生食","仙人焦");
        banana.advantage();
        banana.advantage("黄色");
    }
}
